package cn.zhaoyuening.fanblog.admin.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Buynow on 2017/8/17.
 */
@Controller
public class PageController {
    @RequestMapping(path = "")
    public String index() {
        return "index";
    }

    @RequestMapping(path = "/page/{path}/{view}")
    public String page(@PathVariable(name = "path") String path,@PathVariable("view")String view) {
    	
        return "page/"+path+"/"+view;
    }
}
